package com.oncecloud.devops.client.ldap;
 
import java.util.List;

import javax.naming.NamingException;

import com.oncecloud.devops.client.entity.User;

 
public interface LdapAnon {
	public int connect();
	public String getUserDN(String uid);
 
	public List<User> searchAll() throws NamingException ;
	public void close();
	
	/**
	 * 用户登录认证
	 * @param userAcount 登陆账号
	 * @param password 登陆密码
	 * @return
	 */
	public int authenricate(String userAcount, String password) ;
}
